package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.management.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author MrZhao
 * @created 2025-10-08 18:28
 * @description 角色管理Controller
 *
 */
@RestController
@RequestMapping(path = "/roles")
@SuppressWarnings("all")
public class RoleController {


    @Autowired
    private RoleService roleService;

    @GetMapping("/list")
    public Result list(){
        return Result.success(roleService.list());
    }

}
